import { createApp } from 'vue'
import App from './App.vue'
//引入需要的组件
import Vant from 'vant';
// 2. 引入组件样式
import 'vant/lib/index.css';
import * as vueRouter from "vue-router";
import routes from "./config/route";  //将vue-router中的所有模块导入到vueRouter中

const router = vueRouter.createRouter({
    history: vueRouter.createWebHashHistory(),
    routes,
})


const app=createApp(App)
// 使用组件(引入所有组件)
app.use(Vant)
//使用路由
app.use(router)

app.mount('#app')






